package com.thzy.bbs.entity;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 是否有新的消息和关注
 *
 * @author Lirui
 * @date 2017/1/12 17:02
 */
@Table(name = "message_number")
public class MessageNumber implements Serializable {
    @Column(name = "id", isId = true, autoGen = true, property = "NOT NULL")
    private int id;
    @Column(name = "is_have_attention")
    private boolean isHaveAttention;//关注
    @Column(name = "is_have_message")
    private boolean isHaveMessage;//消息
    @Column(name = "receive_date")
    private Timestamp receiveDate = new Timestamp(System.currentTimeMillis());

    public MessageNumber() {
    }

    public MessageNumber(boolean isHaveAttention, boolean isHaveMessage) {
        this.isHaveAttention = isHaveAttention;
        this.isHaveMessage = isHaveMessage;
    }

    public boolean getIsHaveAttention() {
        return isHaveAttention;
    }

    public void setIsHaveAttention(boolean haveAttention) {
        isHaveAttention = haveAttention;
    }

    public boolean getIsHaveMessage() {
        return isHaveMessage;
    }

    public void setIsHaveMessage(boolean haveMessage) {
        isHaveMessage = haveMessage;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Timestamp getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Timestamp receiveDate) {
        this.receiveDate = receiveDate;
    }
}
